package com.jy.adscm.security.properties;

import com.jy.adscm.bean.system.JyMenu;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yyy
 * @ClassName SecurityConstants
 * @Description 权限模块常量配置
 * @date 2018/7/26 15:24
 */
public interface SecurityConstants {

    /**
     * 所有菜单层级结构
     */
    List<JyMenu> ALL_MENUS = new ArrayList<>();

    /**
     * 当请求需要身份认证时，默认跳转的url
     *
     * @see
     */
    String DEFAULT_UNAUTHENTICATION_URL = "/authentication/require";

    /**
     * 默认的用户名密码登录请求处理url
     */
    String DEFAULT_SIGN_IN_PROCESSING_URL_FORM = "/authentication/form";

    /**
     * 默认的登录过期时间
     */
    int DEFAULT_SIGN_EXPIRE_TIME = 60000;

    /**
     * 默认的访问用户的所有资源的地址
     */
    String DEFAULT_USERS_URLS = "/users/urls";

    /**
     * 默认的权限不足跳转的URL
     */
    String DEFAULT_ACCESS_DENIED_URL = "/authentication/noPermission";

    /**
     * 系统自动给所有请求加的前缀
     */
    String  DEFAULT_REQUEST_URL_PREFIX = "/adscm";

    /**
     * 登出URL
     */
    String DEFAULT_LOGOUT_URL = "/adscm/logout";

    /**
     * 获取某个菜单下面的所有资源（有权限的和没有权限的通过字段标志）
     */
    String DEFAULT_ALL_MENU_SRC_URL = "/adscm/system/menu/getMenuAllSrc/*";

    /**
     * 查询所有用户
     */
    String DEFAULT_QUERY_ALL_USER = "/adscm/zltx/qsIssueRecyclingQsfile/queryUser/*";

    /**
     * 质量体系相关
     */
    String[] DEFAULT_ZLTX = new String[]{"/adscm/zltx/maai_production/**"
            ,"/adscm/zltx/qsApplyUpdateRecord/**"
            ,"/adscm/zltx/qsApprovalRecord/**"
//            ,"/adscm/zltx/qsAttachment/**"
            ,"/adscm/zltx/QsFileContent/**"
            ,"/adscm/zltx/QsFile/**"
            ,"/adscm/zltx/qsIssueRecyclingQsfile/**"
            ,"/adscm/zltx/qsQsfileDept/**"
            ,"/adscm/zltx/qsUpdatedFileTrain/**"
            ,"/adscm/zltx/sjFile/**"
            ,"/adscm/zltx/sjApplyUpdateRecord/**"
            ,"/adscm/zltx/sjApprovalRecord/**"
            ,"/adscm/zltx/sjIssueRecycling/**"
            ,"/adscm/zltx/sjFileTrain/**"
            ,"/adscm/zltx/sjFileVersionRecord/**"



    };
    /**
     * 图纸相关
     */
    String[] DEFAULT_ZLTX_DRAWING = new String[]{"/adscm/zltx/jyDrawingList/uploadDrawing/*"
            ,"/adscm/zltx/jyDrawingList/uploadAnnex/**"
            ,"/adscm/zltx/jyDrawingList/viewDrawingPdf/*/*"
            ,"/adscm/zltx/jyDrawingList/downloadPdf/**"
            ,"/adscm/zltx/jyDrawingList/downloadFile/*"
            ,"/adscm/zltx/jyDrawingEditInfo/selectLastPdf/*"
            ,"/adscm/zltx/jyDrawingEditInfo/downLoadLastPdf/*"
            ,"/adscm/zltx/qsAttachment/**"  //质量体系的，但是不需要做认证的
            ,"/adscm/zltx/sjAttachment/**"
            ,"/mh/ueditor/config"
            ,"/adscm/operation/**"
            ,"/adscm/hcplan/**"
            ,"/adscm/zltx/jyDrawingListTree/**"
            ,"/adscm/zltx/jyDrawingRelation/**"
            ,"/adscm/zltx/jyDrawingList/**"
            ,"/adscm/system/user/selectAllUser"
            ,"/adscm/pebase/**"
            ,"/adscm/xjfile/**"
            ,"/adscm/zltx/sjFileUser/**"
            ,"/adscm/system/user/editUsersPwd/**"
            ,"/adscm/wechat/**"
            ,"/adscm/wxLogin"
            ,"/adscm/system/menu/getUsersSrc"
            ,"/adscm/kz/**"
            ,"/adscm/operation/mask/**"
            ,"/adscm/kz/**"
            ,"/adscm/appLogin"
            ,"/adscm/appLogout"
    };

    /**
     * 营运管理
     */
      String [] DEFAULT_OPERATION= new String[]{

         };
}
